package manage.controller;

import manage.domain.Student;
import manage.domain.Teacher;
import manage.domain.Teacher;
import manage.service.TeacherService;

import java.util.Scanner;

public class TeacherController extends BaseTeacherController{
    //输入老师信息方法（将多次使用的用户输入封装起来，减少代码量）
    public Teacher inputStuInfo(String id) {
        System.out.println("请输入姓名：");
        String name = sc.next();
        System.out.println("请输入年龄：");
        String age = sc.next();
        System.out.println("请输入生日：");
        String birthday = sc.next();
        //Teacher tea = new Teacher(id, name, age, birthday);//构造方法封装用户输入的新对象
        Teacher tea=new Teacher();
        tea.setId(id);
        tea.setName(name);
        tea.setAge(age);
        tea.setBirthday(birthday);
        return tea;
        //return null;
    }


}
